#include <event2/event.h>
#include <event2/listener.h>
#include <signal.h>
#define SPORT 9005


int main() {
    if(signal(SIGPIPE, SIG_IGN) == SIG_ERR){
        return 1;
    }
    event_config *conf = event_config_new();
    
    event_base *base = event_base_new_with_config(conf);
    event_config_free(conf);
    

    /*确认特征是否生效*/
    int f = event_base_get_features(base);
    if(f&EV_FEATURE_ET){
        printf("%d\r\nET\r\n",f);
    }
    if(!base){
        printf("failed\r\n");
    } else {
        printf("success\r\n");
        event_base_free(base);
    }
}